<script>
	export default {
		onLaunch: function() {
			//console.log('================App Launch=================');
			let platfrom= this.$u.os();
			//console.log("platfrom",platfrom);
			let id="";
			if("android"===platfrom){
				let build = plus.android.importClass("android.os.Build");
				let srialNumber = build.SERIAL;  
				console.log("安卓设备序列号srialNumber",srialNumber);
				id= srialNumber;
			}
			//ios
			else{
				id=plus.device.uuid;
				//console.log("获取ios设备序列号",id);
			}
			this.$u.vuex('vuex_deviceMode', id);
		},
		onShow: function() {
			//console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
</style>
